const permissions = {
    'crm-admin': [
        '/admin',
        '/admin/activities', '/admin/activities/new', '/admin/activities/edit/:activity_code', '/admin/activities/results/:activity_code', '/admin/activities/prize', //推广活动
        '/admin/merchants', '/admin/merchants/new', '/admin/merchants/edit/:id', '/admin/merchants/history/:id', //商户管理
        '/admin/merchants/api', '/admin/merchants/api/:id', //商户API
        '/admin/merchants/api/:id/default', //设置默认商户
        '/admin/merchants/api/:id/channel/:uid', //渠道绑定
        '/admin/merchants/api/:id/channel/:uid/history', //渠道历史
        '/admin/merchants/api/:id/history', //商户历史
        '/admin/refunds', '/admin/refunds/stats', '/admin/refunds/export',
        '/admin/surveys', '/admin/surveys/new', '/admin/surveys/edit/:program_code', '/admin/surveys/results/:program_code',
        '/admin/products', '/admin/products/new', '/admin/products/edit/:id', '/admin/products/save', '/admin/products/delete/:id' //解决方案产品管理
    ],
    'crm-gmoffc': [
        '/admin',
        '/admin/activities', '/admin/activities/new', '/admin/activities/edit/:activity_code', '/admin/activities/results/:activity_code', '/admin/activities/prize', //推广活动
        '/admin/merchants', // 商户管理
        '/admin/merchants/api/:id/channel/:uid/history', //渠道历史
        '/admin/merchants/api/:id/history', //商户历史
        '/admin/refunds', '/admin/refunds/stats', '/admin/refunds/export',
        '/admin/surveys', '/admin/surveys/new', '/admin/surveys/edit/:program_code', '/admin/surveys/results/:program_code',
        '/admin/products', '/admin/products/new', '/admin/products/edit/:id', '/admin/products/save', '/admin/products/delete/:id' //解决方案产品管理
    ],
    'crm-mkting': [
        '/admin',
        '/admin/activities', '/admin/activities/new', '/admin/activities/edit/:activity_code', '/admin/activities/results/:activity_code', '/admin/activities/prize', //推广活动
        // 商户管理
        '/admin/refunds', '/admin/refunds/stats', '/admin/refunds/export',
        '/admin/surveys', '/admin/surveys/new', '/admin/surveys/edit/:program_code', '/admin/surveys/results/:program_code'
    ],
    'crm-service': [
        '/admin',
        '/admin/activities', '/admin/activities/results/:activity_code', //推广活动
        // 商户管理
        '/admin/refunds', '/admin/refunds/stats', '/admin/refunds/export',
        '/admin/surveys', '/admin/surveys/results/:program_code'
    ],
    'crm-sales': [
        '/admin',
        '/admin/activities', //推广活动
        // 商户管理
        '/admin/refunds', '/admin/refunds/stats', '/admin/refunds/export',
        '/admin/surveys', '/admin/surveys/results/:program_code'
    ]
}; 

module.exports = { permissions };
